package com.yiyuan.app.entity.result;

import com.guaike.core.entity.annotation.DictConvert;
import com.guaike.core.entity.annotation.NumberAutoConvert;
import com.guaike.core.entity.annotation.StripTrailingZeros;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("周卡月卡单条实体")
@Data
public class ProductCardDetailVO implements Serializable {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("商品名称")
    private String cardName;

    @ApiModelProperty("商品类型（0：周卡，1：月卡）")
    @DictConvert(code = BusinessDictCodeConstant.M_PRODUCT_CARD_TYPE)
    private Integer cardType;

    @ApiModelProperty("立即获得松果数量")
    @NumberAutoConvert
    private Integer directlyPinecone;

    @ApiModelProperty("每天获得松果数量")
    @NumberAutoConvert
    private Integer dailyPinecone;

    @ApiModelProperty("总计获得松果数量")
    @NumberAutoConvert
    private Integer totalPinecone;

    @ApiModelProperty("金额")
    @StripTrailingZeros
    private BigDecimal money;

    @ApiModelProperty("产品图片")
    private String image;

    @ApiModelProperty("剩余天数")
    private Integer remainDay;

}
